<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
<title>Print method</title>
<style>@import url(coUA.css);</style>
<link disabled rel="stylesheet" href="htmlhelp.css">
</HEAD>

<BODY>
<h1>Print method</h1>

<h2>Purpose</h2>

<p>Use the <b>Print</b> method to print one or more topics in a specified contents (.hhc) file.</p>

<p>This method can be used with either a compiled help (.chm) file or uncompiled HTML files.</p>

<h2>Applies to</h2>
<a href=ocx_contents.htm>Contents</a><br>

<h2>Syntax</h2>
<code>
Print()
</code>

<p>The <b>Print</b> method takes no parameters.</p>


<h2>Example</h2>
<p>The following example shows how to use the <b>Print</b> method to invoke the <a href="ocx_contents.htm">Contents</a> command.</p>

<b>The code for the <b>Contents</b> command:</b>
<pre><code>
&lt;OBJECT
<br>  id=test2
<br>  type="application/x-oleobject"
<br>  classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
<br>  codebase="hhctrl.ocx#Version=4,72,8252,0"
<br>  width=55%
<br>  height=45%
<br>&gt;
<br>  &lt;PARAM name="Command" value="Contents"&gt;
<br>  &lt;PARAM name="Item1" value="methods.hhc"&gt;
<br>&lt;/OBJECT&gt;
</pre></code>

<b>The JavaScript code to call the <b>Print</b> method:</b>
<pre><code>
&lt;a href=JavaScript:test2.Print()&gt;Print Contents&lt;/a&gt;
</pre></code>

<h2><a href="showme_mprint.htm">Show Me</a></h2>

<br>
<table border="0" cellpadding="0" cellspacing="4">
<tr>
<td valign="top"><a href="ocx_methods.htm"><img src="proced.gif" alt="link to overview topic" border="0"></a>
</td>
<td><a href="ocx_methods.htm">About methods</A>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>

</BODY>
</HTML>
